Skip to content

[WIP] feat: consolidate all YAML conditionals #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

dhower-qc
Copy link
Collaborator

WIP

Comment on lines +49 to +50
The "compatible with" operator will accept any version that is greater than or equal to the target and that has not been marked as a breaking version change in the database.
Note that RISC-V does not follow semantic versioning, so `2.0` may be compatible with `1.0` for a given extension as long as `2.0` (or any version between `1.0` and `2.0`) is not marked as a breaking version.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this "marking" documented somewhere?
If so, can you put a reference to that here?

Comment on lines +102 to +103
| `less_than_or_equal` | Parameter value is less than or equal to | `less_than`: 5
| `greater_than_or_equal` | Parameter value is greater than or equal to | `greater_than`: 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples here need to use the respective keys. (Looks like they were just copied from the previous examples.

Generic constraints provide an escape hatch when a condition is difficult to express when using <<ext_reqs,Extension Requirements>> or <<param_reqs,Parameter Requirements>>.
A generic constraint is an IDL function containing one or more link:../idl.adoc#implications[implications].
The constraint holds if all the implications are true.
The constraint function does not return a value.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems more logical to return a boolean, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants